﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Enterprise.UI.Web.Modules.Jihuabu
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string s1="2009-01-01";
            string s2="2020-01-01";
            if (!IsPostBack)
            {
                if (t1.Text == "")
                    t1.Text = s1;
                if (t2.Text == "")
                    t2.Text = s2;
                bindGrid();
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            bindGrid();
        }

        private void bindGrid()
        {
            string href = "M01_Js.aspx?s1=" + t1.Text + "&s2=" + t2.Text + "&splitstr=" + tjqj.Text.Trim() + "&type=" + rb_type.SelectedValue;

            ClientScript.RegisterStartupScript(this.ClientScript.GetType(), "sc", "<script>$(\"#grid\").empty();$(\"#grid\").append(\"<iframe src=\\\"" + href + "\\\" frameborder=\\\"0\\\" width=\\\"880px\\\" height=\\\"420px\\\" scrolling=\\\"no\\\"></iframe>\");</script>");
        }
    }
}